<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="<?php echo __PUBLIC__?>/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="<?php echo __PUBLIC__?>/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="<?php echo __PUBLIC__?>/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="<?php echo __PUBLIC__?>/Admin/Flat/img/favicon.ico">

	    <script src="<?php echo __PUBLIC__?>/Home/js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="<?php echo __PUBLIC__?>/Home/js/hdjs.css"/>
		<script src="<?php echo __PUBLIC__?>/Home/js/hdjs.min.js" type="text/javascript" charset="utf-8"></script>
	    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
	    <!--[if lt IE 9]>
	      <script src="dist/js/vendor/html5shiv.js"></script>
	      <script src="dist/js/vendor/respond.min.js"></script>
	    <![endif]-->
	</head>
	<body>
		<form action="" method="post" enctype="multipart/form-data">
			<div class="alert alert-success">添加品牌名称</div>
			<div class="form-group">
				<label for="exampleInputEmail1">品牌名称</label>
				<input id="exampleInputEmail1" class="form-control" type="text"  placeholder="请输入品牌" name="bname" value="<?php echo $brandData['bname']?>"  required="">
			</div>
			<script src="<?php echo __PUBLIC__?>/Home/js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>
			<script type="text/javascript">
				$(function(){
					$('#close_img').click(function(){
						$('.img_box').remove();
						$('.files_box').html('<label for="exampleInputEmail1">logo</label><input id="exampleInputEmail1" class="form-control" type="file" name="logo"  required="">');
					})
				})
			</script>
			<?php if(isset($brandData['logo']) && $brandData['logo']!=''){?>
                
				<div class="form-group img_box">
					<label for="exampleInputEmail1">logo</label>
					<img src="<?php echo $brandData['logo']?>" alt="" class="img-thumbnail">
					<a href="javascript:;" id="close_img" title="点击删除logo">X</a>
					<input type="hidden" name="logo" id="logo" value="<?php echo $brandData['logo']?>" />
				</div>
			<?php }else{?>
				<div class="form-group">
					<label for="exampleInputEmail1">logo</label>
					<input id="exampleInputEmail1" class="form-control" type="file" name="logo"  required="">
				</div>
			
               <?php }?>
				<div class="form-group files_box"></div>
			<div id="">
				<label for="">是否热门</label>
				<br />
				<label class="checkbox checkbox-inline">
					<input id="checkbox1" class="custom-checkbox" type="checkbox" name="hot" value="1" data-toggle="checkbox" <?php if($brandData['hot']==1){?>
                 checked="checked" 
               <?php }?>>
					<span class="icons">
					<span class="icon-unchecked"></span>
					<span class="icon-checked"></span>
					</span>
					热门
				</label>

			</div>
			
			<div class="form-group">
				<label for="exampleInputEmail1">排序</label>
				<input id="exampleInputEmail1" class="form-control" type="text" placeholder="请输入分类排序" required="" name="sort" value="<?php echo $brandData['sort']?>">
			</div>
			
			<input type="hidden" name="bid" value="<?php echo $brandData['bid']?>">
			<button class="btn btn-primary btn-block" type="submit"> 确定 </button>
		</form>
	</body>
</html>
